Added lexer code for the DOM API