adding jstest...works but need to factor in cases whre the attributes themselves are objects (recursion)