Updating to run in phantom-js -- adding shim for `bind` -- as well as supporting
AMD, commonjs, and browser environments.