fixed 24 hours to 12 hours.

The getHours() function from the Date class in javaScript returns a 24h based number. This was changed to the 12h scheme needed for an analog clock by adding %12 to the function.