Lightweight javascript library for creating and manipulating trees