undefined exception on mac fixed

For Chrome 35 and Firefox 26 on Mac, the property "beta" in 3d.js
sometimes appears to be undefined.
Adds a redefinition of beta before drawing models.