added basic lexer, exported from codepen.