replace all println to console.log (for node.js)