How to show banner only on specified page(url)?

<script> var bannerId = 1; var url = '/secure/Dashboard' var bannerSelector = '.jibrokBanner[bannerid=' + bannerId + ']' if(window.location.href.indexOf(url) >= 0){ AJS.$(bannerSelector).show() } else { AJS.$(bannerSelector).hide() } </script>