Capture screenshort from webcam via JavaScript