shake.js: deviceorientation patch from @koddsson