Added comments to queue.js file