updated js in index.html