refactor: make worker message listener an arrow function