update index.html with js