Write js function for nav, load page content w ajax