improved index.html and indexjs.js