Moved the search JS into a included JS file