Added RequireJS and CommonJS support.
Merge pull request #11 from gmodev/add-rjs-cjs-support

Added RequireJS and CommonJS support.