Made package AMD & CommonJS compatible
Merge pull request #11 from jscarmona/feature/module

Made package AMD & CommonJS compatible