js cleanup, rendering both images and footers