MassOnTime - Code styling and potential bug fix in mass_on_time.js