Object Inside Array Javascript Append Function In R