adding js to the index