removed unnecessary js nav functions