change index to require the right js file