Webcam based application control using JS stream API