Fix orientation change detection

Fixes #2 (possibly other generic "it doesn't work" issues which may have been caused by the missing scaleBody.js file)