Implementation of Finger Tree in JavaScript.