Allow JS to set duration and secondsLeft independently