Removed old code from main.js