jQuery contents() does not accept an argument. Changing to text().