Updates .text() for an edge case with Firefox