rename tokenizer.js
fix syntax errors
update tokenizer tests to go through parser
refactor tokenizer into a prototype