TimeUnit for javascript