Made commonjs compatible