using canvas for animation and html5 accelerometer for rolling a ball through the path