Jumping spiders have tiny and relatively simple brains, but scientists are discovering they are among the smartest invertebrates on the planet.