refactoring to follow MVC format seen in angular-express-seed