Define simple callback function with javascript Node.js