There was an issue with calling the callback on success.

on line ~157 there is something along the lines of 

step == queue.length 

when it should be 

step == queue.length-1

since step is 0-indexed and length is 1-indexed