Update queue.js

Added comments to file