Define 'assert' in this module, since it's used here.

Some earlier commits moved a bunch of code from other modules into parser.js, including references to assert.ok(), but assert was not in scope in parser.js. Make it so that it is.