Upload feature: angularjs and requirejs