Updated js to try to resolve the error with the second search. However, realized the bigger flaw which is the index can't be posted to. There is probably a way to make that work but easier for this project to split out the pages the way they were before.