AMD, CommonJS, and browser globals.
passes lint
rebiulds dist