Cleaned up some style, fixed typo, and changed order of build and requirejs settings

The current version of the example doesn't actually compile.

This commit fixes #1 .