Add .jshintrc and fix warnings
Move the root object out of the LruMap

it is important that the root object doesn't get evicted, so that it
remains available to recieve messages