fix var declaration issues causing minification to fail with strict

All the qunit tests pass ok.