JS Object to JSON Schema