MDN's Detecting Device Orientation demo modified to use acceleration data
Start
Hold the device parallel to the ground. Move along its x and y axes to see the ball move up/down and left/right respectively.