Changed the way HTML is escaped in the jquery