double base_url in footer scripts