Update capture.js