a few changes to increase jQuery compatibility.
testing jquery compatibility of method val, text and html.
Merge pull request #800 from igorescobar/master

jQuery Compatibility Increase