changing js extprocs to pass around ql::datum_t instead of cJSON