Added Factories to Angular, removed main.js and themeManager.js