js interface conversions for time.Time