Fix lexer errors
Add browser support