A simple stack data structure for Node.js and the browser