add hasClass method to browser utils