CommonJS && AMD support

So we can use it with Browserify and Require.js for example