Fixed bug with advanced search form JS.