delete dot from class in JS