JS: option to plug in your own tokenizer.