update camera.js