create angular.controllers and factories instead function