Python Kd Tree Queryselector Javascript Class Example