Motion capture using canvas and WebRTC