backbone events for browser and node.js