Change JS structure, conditional for current job time injection