first approach to phonegap