Fix dropbox.js on Chrome apps and fix tests.