allow custom function for phantom.stdout.on("data", [Function])