run js in the nav