Update web/viewer.js

Use asyncStorage.setItem for B2G