backport queryeditor changes from uu.formlibrary into jslib