Fix issue with es6 extension with JSHint