Fixed index.js
Cleaning up