Change html() and text() to contents