Add UMD support

@ConradIrwin I was unsure if the AMD spec required the dependency array, so I kept it in. But looking at https://github.com/amdjs/amdjs-api/wiki/AMD#define-function- it seems that it is optional. You're right.