Using DOM manipulation to create a clock