Cordova: Plugin/Background Thread Example