ES6 vs ES5 - typo