improving phonegap app