Example of how to use UMD in Javascript and AngularJS