Load main content with ajax, write js for nav bar