Removed unnecessary function from camera.js