bugfix: fix issue #86 by using jquery to access text in portable fashion