Added CommonJS functionality, Node.js test