Added phonegap code.