make jsval_to_std_string does not make extra heap allocation for temp char* str.
just added some old codes, not working yet