Add support for loading via AMD and CommonJS

Would be super nice to have it baked in! :)