Hide breadcrumbs when using ajax for navigation

Rather than applying styles via JS, would it be better to add a class to the containing element and have these changes in the CSS?