Building angularJS framework