Hi, I've recently had some fun writing a little JS library in order to automate some UI verification against a known baseline using perceptual diffs. Thought I'd share so that hopefully someone else can benefit from this too.
https://github.com/kennychua/pdiffy
Credit to resemble.js for a majority of the code
Pdiffy - Library for Automated UI Verification testing with Perceptual Diffs | Heykuki News