Convert Raw to ES6