Edit and Create Job javascript