Initialize remaining time from HTML