Easily convert angular.modules to be AMD/CommonJS-compatible