A JavaScript Prototype which creates and runs a Queue of functions