Update parser.js
Merge pull request #1538 from asturur/ie9-fix

Fix IE9 incompat