using javascript with webcam instead of mjpg stream