Javascript fix for general eul search form