Javascript Tabbed Results Page (and some tidying)

I made my own javascript D: it only took a whole hour, and just OCD'd
some pages tidyness