Safari - Timer and Quitting browser not working