Removed unused code and commented index.js