moved js in index.html to index.html