Bug fix: order of links in $nav doesn't matter anymore - we sort sections by offset from top (bottom section doesn't need to be last in $nav to get activated)
Bug fix: there's no negative offset anymore (it could happen recently if first section was very low)