[javascript] How do I convert a javascript object array to a string array of the object attribute I want?