Added changes to camera.js