When I change the classlist value it throws an error on the New Date function and I don\'t get how they cause each other but only about 60% of the time, the rest of the time