adding js to index