phonegap: fixed definition errors