ajax detects if current page is single