Javascript Json To Key Value Array Javascript Iteration