record acceleration and orientation

tested on iphone safari