Javascript implementation of the Vantage-Point Tree nearest neighbor search algorithm