JavaScript/CoffeeScript implementations of safer stack and queue data structures