DeviceOrientationControls.js updates

Minor optimizations to DeviceOrientationControls.js including: 

* making certain variables of the controller private.
* optimizing to avoid unnecessary sub-routine execution.
* optimizing to avoid  unnecessary garbage collection.
* generally improving code layout + presentation.