removed direct javascript execution from index.html