Use umd.js pattern to define the application.

https://github.com/umdjs/umd/blob/master/amdWeb.js