The ```back-to-top.js``` script hides the button if the height of the body is less than the height of the window - removing the need for vertical scrolling.

If the window is resized then the specified footer element's height is used to alter the placement of the button.