diff --git a/src/_h5ai/index.html.jade b/src/_h5ai/index.html.jade
index 0a8c2ec5..2cd9b21f 100644
--- a/src/_h5ai/index.html.jade
+++ b/src/_h5ai/index.html.jade
@@ -77,5 +77,4 @@ html.no-js( lang="en" )
span.right
span.center
- script( src="config.js" )
script( src="js/scripts.js" )
diff --git a/src/_h5ai/js/scripts.js b/src/_h5ai/js/scripts.js
index bf6a96b3..4e522dbe 100644
--- a/src/_h5ai/js/scripts.js
+++ b/src/_h5ai/js/scripts.js
@@ -22,7 +22,7 @@
// @include "inc/**/*.js"
$.ajax({
- url: $('script[src$="/js/scripts.js"]').attr('src').replace(/\/js\/scripts.js$/, '/config.json'),
+ url: $('script[src$="scripts.js"]').attr('src').replace(/scripts.js$/, '../config.json'),
complete: function (data) {
var config = JSON.parse(data.responseText.replace(/\/\*[\s\S]*?\*\/|\/\/.*?(\n|$)/g, ''));
@@ -42,7 +42,7 @@
modulejs.require($('body').attr('id'));
});
- }}
- );
+ }
+ });
}(jQuery));