code: def _jstype(self, stype, sval):
          
          if stype == self.IS_LIST:
              return "array"
          if stype == self.IS_DICT:
              return "object"
          if isinstance(sval, Scalar):
              return sval.jstype
          # it is a Schema, so return type of contents
          v = sval._schema
          return self._jstype(self._whatis(v), v)
docs: Get JavaScript name for given data type, called by `_build_schema`.