Fixed JavaScript loading in index.html.