PUP.Optional.Wajam is the detection name for Wajam, a browser add-on marketed as a “social search.”
PUP.Optional.Spigot is the generic detection for a family of browser hijackers. A more detailed description can be found in the blog post, Spigot browser hijackers.
Malwarebytes can remove this potentially unwanted software without further user interaction. Examples of removal guides: