refactored the build to produce a standalone .js file.  can optionally build an amd module.