First working version.

Browser-side JavaScript can trigger Phantomjs/NodeJS-side screencapture.