How to convert Map Values to an Array in JavaScript