Updated search form javascript.