Removing redundant script calls in head template partials.