Add js example test file
Add error locattion information to parseerror event.
Fire parseerror in other situations.
Merge remote-tracking branch 'upstream/master'

* upstream/master:
  Fire parseerror in other situations.
  Add error locattion information to parseerror event.
  Add js example test file
Update to latest.