Added amdrequire for node.js compatibility