Define a variable for `progressPlugin`

`progressPlugin` was defined in the global scope.  I assume this was by accident.

To prevent similar errors, I would suggest that we use strict mode for all modules (a generally accepted best practice for JavaScript), and ideally also use separate var's rather than commas (also a best practice, but slightly less universally accepted).  If you agree, I'll make both changes.