Extract common head section
Wire up last of vendored javascript