Applying angular.extend #1