Export as an Angular.js module instead of object