changed to use jQuery text method