analog clock javascript fix