Fix bug#3967 Footer not included in AJAX loaded pages