Add support for loading via AMD and CommonJS

Would be super nice to have it baked in! :)
Is this necessary?
Just not sure