updated controllers - to turn application into a API
added angular.js