add phonegap code