Tidying up the sidenav JS and styles