make the required qunit snippet be ES3 compatible

the original, suggested snippet will only work on ES5 capable browsers.