captureController.js