Code style
Cleanup
Support UMD (Universal Module Definition)