Demystifying JavaScript Variable Scope and Hoisting

In Chrome type chrome://flags/ into your omnibar and enable Experimental JavaScript, that should enable support for ES6 features.