update js nav and scroll