Added nested option for $.fn.htmlData.
Fixed switchClass error when class attribute is not defined.