A jQuery way to change the style of element by changing the class