updated some javascript and index.html