Java Script Example: Creating a Clock with a Timing Event