Fix syntax error in test.js for IE<8