Php Add Key And Value To Array Javascript Append Method