Corrected event handling -- call res.write() instead of res.send()