demo REST with phonegap