HTML/JS - Added end time and repeat