I am not sure if the JavaScript-based API even works anymore? Even when it did, the screenshots needed manual fixing (there's a double caret somewhere, and the IME overlay is offset by 8px). It's a mess, but it doesn't really matter.