Add universal module definition

So that it will work with script loading, require.js, and browser
CommonJS systems like Mr