Added js header-index check for navScroll