update index.html add javascript code