JavaScript quadNode performance enhancement.