Finally fixed JavaScript Clock