Clock using anonymous functions and setInterval