Use var in place of let

This makes uglifyjs happier
Merge branch '4.0' of github.com:zotero/zotero into 4.0
Use var instead of let

This code gets included into the bookmarklet, so uglifyjs has to like it