fixed problems with setFileFilters js method