setting up index page to read js