small changes in the parser.js file