Add code generation for for loops in node.js