Update remaining time display with JavaScript