Got rid of unneeded line in webcam.js - window.webcam = webcam;