setting up index and js