Javascript Camera Prototype