Fix various templates overwriting footer js.