AMD and node.js module instantiation