promise return bugfix in dropbox.js