Testing out phonegap apis