In-memory b-tree implementation written in JavaScript