Added jQuery function to apply class to navigation based on URL