C++ <vector> type in JavaScript