Common data structures for node.js and the browser