changed timer function to pure HTML to solve a sticky css issue