Tokenizer in JavaScript, new test scripts

- Added tokenizer wrapper to JavaScript.
- Improved test scripts.