Support for Node.js and amd.