Use $(html).attr(attrs) instead of $(html, attrs)

Avoid some method conflicts.