Stick footer at bottom when height is lower than display height

Дусал нэвтэрхий толь-с
	$('html').css({'height': '100%', 'box-sizing': 'border-box'});
	var bodyPadBtm = 'calc(' + $('#footer').outerHeight() + 'px + ' + $('#footer').css('marginTop') + ')';
	$('body').css({ 'min-height': '100%', 'position': 'relative', 'margin': '0', 'padding': 0, 'padding-bottom': bodyPadBtm });
	$('#footer').css({'bottom': '0', 'position': 'absolute', 'right': '0', 'left': '0'});