Array styled stack for node and the browser