Cleaned up search form JS.