cleanup index.js