Convert Object Properties To Array Javascript