AHRS (Attitude Heading Reference Systems) calculation for JavaScript
Obtain device attitude (roll, pitch and heading)