adding js to index.html