Fix javascript for filtering form not working.