allows passing single DOM element instead of query