Javascript Create Json Object From Array