http://www.mattkruse.com/javascript/mktree/source.html
