Cleans up footer code