Javascript Json Add Dynamically Allocated String