time in js assignment