Moved the javascript into the header for all pages, load time shouldn't be that low anyway