change from "alert" to "console.log" for Node.js