added <access origin="*" />  to the phonegap config file