Replaced jQuery's text method for the raw js property