Improving the controller

I separated the routing from app.js from the loading data
(controller.js)