Pulling out more from camera.js
Remove camera global