JS for job status toggle