cleans index.js