body padding is only done in css if navbar position is fixed
window.scrollY/X calls replaced by using jQuery abstration methods
offset.top and offset.bottom options are called if they are functions.