tutorial on alerts in node.js