hasClass component, checks to see if a perticular className exists on an element