add findClosestParticle() to JS interface