updated index.html and js file