removind unnecessary class definitions from HTML element