Convert global variables to local to optimize minification.

This small change only reduces the minified file by 127 bytes, but every byte counts. ;)