JavaScript Library for Motion Detection based on WebRTC