fixed function names in clock js