Using webcamjs with a module system (commonjs) is currently incompatible with the webcam.swf callback hooks. I'm guessing that it's expecting there to be a global Webcam object with a flashNotify method.
To solve this, we could define a unique method name on the window, and pass the name to the swf when it is created.
window.__webcamjs-flash-notify_{uuid} = function(type, msg){...}
This would allow easy(er) setup with module systems.
What do you think?