[closebrackets addon] Remove ECMA5-ism

Closes #1508