phonegap example playing with api and storage