Code formatting

- Use 4 spaces instead of 2
- initialize is now wrapped in closure
- trie global is now directly on window