add common utilities to manipulate ejson documents