backbone history for browser and node.js.