Add support for loading via AMD and CommonJS