Functional to Phonegap Build