Return a list of devices and their viewports using Node.js