Modify JS to account for body height greater than window height