(Untested changes!) content_script.js: lots of tweaks and cleanups and lots of "FIXME"...

...(tho I use "???") comments on stuff that, well, smells.
Our JS needs _serious_ refactoring.
(Hey, maybe convert it to CoffeeScript while at it? See http://js2coffee.org/ ;o)