get source with phonegap