Seems to be some jquery selectors that are executing before DOM ready still. Since all this JS has now been moved up into the head, this will silently fail?

We should all types of DOM interactions inside the handler wherever possible.