Added getJobQueue method & emptyQueue method to jobs.js