Updated jQuery URL-matching functionality to sidebar