Add main to shim and fix search label toggle

We are going to use a main tag for the new homepage so it needs to work
on IE.

To make the search toggle work on more than just the top bar it needs to
look at the contents of the targets val not the val of the first element
on the page.