Phonegap little directory