convert your node.js code into amd-compatible code