[BUGFIX] Fixes javascript error in qunit tests