trying to connect phonegap file transfer API