Revised Canvas Clock's event handling and JS coding standards