Support function declarations in node.js output