leaking globals

First off thanks for putting together node-autocomplete. 

There are a few issues with var statements in lib/trie.js. I cleaned those up and there should not be anymore leaking globals