fix JS compat of TimePoint api