Just ported https://github.com/vadimg/js_bintrees. Has no interval-tree functions yet.