Ticking clock using the native JavaScript date object