Why you don't put any old random JavaScript on your site

Ouch. I presume this was from malware JavaScript, but it could be their server was pwned.  Bad guys these days make no visible change for ordinary visitors, but for crawlers and then when they get into the search engine index, they flick you to the spam sale site. Nasty.