Fixed the js in index.html