Move some setup script from blogger template html, as it's hard to write JS inline in the template