define for AMD, CommonJS, or global context depending on environment. looks great. checked out on local and it passed all the tests. Now that we have browser support we should throw in some browser tests no?