Fix huffman tree creation.

Because Javascript uses doubles and the original huffman tree was built
using floats, a few comparisons that are used to build the tree end up
being out of whack.  Introducing an epsilon in a few of our comparisons
fixes the tree.