removing index and adding js file