Finished moving index.js