Tmp motion detection with theshold. Code sample from: http://www.adobe.com/devnet/html5/articles/javascript-motion-detection.html