#1 Added support for AMD and CommonJS loading