According to MDN "const" will change semantics in ES6 (although here it would probably not bring too much harm). I'd prefer not to use it but I could if you prefer.