Cleaned up code and deleted useless main.js file