trying to get the javascript to account for the footer