Refactorings: isDigit method extracted, tokenizer fields initialized with appropriate values. tree_constructor.js added