Fixing issue with footer JS