Transform string expression for node.js