removed isHTML method to adapt to jquery 1.9 API