Working on Phonegap / Dropbox authentication