new js file for webcam