Update cameraController.js

Don't spread config over the code