Nav Target JS partially working