Add CommonJS and AMD / RequireJS compatibility