Add ES6 globals. Closes #1551.