loading added to filter class js