Fixing .text method, before the fix it was adding [Object text] instead of actual text