Update TaskQueue.js

Updated example.