A visualization of particle swarm optimization in javascript