Convert global variables to local to optimize minification.
Merge pull request #100 from dboulet/master

Convert global variables to local to optimize minification.