Js Create Object From Array Javascript Append Input