mg's theo-mode in node.js