The glass jar was a good idea. Gasoline in a plastic cup may be problematic, but it seems to work for this. Also, those look like paper wasps, not yellow jackets. The former is fairly docile for what they are, but the latter would have one on the ground crying for help before getting anywhere near the nest in broad daylight like this.