Front-end web motion detection via the getUserMedia() API