Sets up require and mobile off canvas menu functionality