Apply worker changes to main.js.