Added dynamic search function to index page.