beginging js implementation, have structure of jobs and tasks