Fix for newer jquery vers when html_attrs not present