Added JS for webcam class when enabled