added findParticles() to JS api