adding the phonegap lib