Typo.
Whitespace.
Comment.
invokeSetupScript: use the passed-in argument everywhere.

The one from outer scope was used in some places before.
Remove a little bit of duplication.