Time format option and Click binding

This is a modded version that add 2 functions:
* Time format option 12 or 24 hours
* Click event binding on rect elements