clean opening hour js method