Moved everything to index.js