A MIPS lexer in pure javascript