Javascript Json Add Dynamically Allocated String In C