code: function JobQueue(para) {
  	this.queue = [];
  	this.curr = 0;
  	this.all_passed = true;
  	this.timeout = ((typeof para === 'object' && typeof para.timeout === 'number') ? para.timeout : 0);
  }
docs: object-based JobQueue functions