Fix strict mode complaints in parser.js