update parser.js, add more explicit error message

As on tin - related to issue #33