initalise phonegap app