improving/simplifying hasClass implmentation by using jQuery's simpler approach. #27