use javascript in search form tab