Async localstorage cordova plugin