fix leak to global in scripts/run-all.js and some missing semi-colons