adding full url in ajax call for when it is called through phonegap