Fixed accidental leak of global variable.  References #591
Enabled strict mode. Fixes #597