A simple analog and digital clock using HTML5 canvas and javascript apis