JS bug fix for footer