backbone events for browser or node.js