http://areai51.github.io/js-camera-motion-detect/
A simple example to demonstrate motion detection using blend mode. Uses WebRTC to invoke the camera.
Simply run the index.html from within a web server.
Move the hand towards the top right left corner of the camera viewport
More details in the slides from my JSFOO talk
Ohh and yes there is a video too