events in node & the browser