JavaScript ES6+ job