Fix exception when this.data() returns undefined
Merge pull request #19 from guttmann/js-fix

Fix exception when this.data() returns undefined