better commenting of capture.js