use the more portable $(obj).text() instead obj.text, MKWS-77