Forgot to define the inner function to be sent to setTimeout in Queue.next()