Custom JS and set up custom nav function