Make removeClass cross browser, also add hasClass function