converts JS objects into their observable equivalents using observ