Update queue.js

Added more comments