JS Particle Swarm Optimizer