Initial phonegap implementation