Opencv.js (Javascript) How can I create a contour (Mat) object with vertices coordinates in an array

Hi there,

This is a question about using opencv.js (Javascript):
How can I properly create a contour (Mat) object with vertices coordinates in an array, such as [[1,2],[3,4],[5,6],[7,8]]?

Regards
Richard