The Firefox debugger is showing a TypeError for a jQuery function aimed at sticking a navbar to the to the top of the page when a user scrolls and updating the class at the
It 's because your $(".navbar") cannot be found. Check if the element exist before getting offset.
if ($(".navbar").length) {...}