JS times fix