Remove global var in QUnit test