Add js to handle footer on small pages