Pass time from the JS