I have a total of 5 pages. All the pages have a simple javascript funcion that searches term in the page and select it. But only the index page\'s search function is working pro