Update parser.js

fixes ie9 incompatibility.