This version is old school.
Please find jQuery plugins on npm.
jQuery.stickFooter
by miWebb
The jQuery sticky footer plugin sticks your footer, with or without set height, to the bottom of your page. You can also use the sticky footer plugin to stick other elements to the bottom of their parent.