puts search functionality into a javascript function, call function on load, and clear form after submission.