Tweaks to make scripts/lockdown.js pass jshint