Fixed issue with jshint and es6