PIM-2332: Move tree_selector js library