fix minor multiselect js independance bug
better js filtering function