javascript library for particle swarm optimization algorithm