js and index.html updated