Make worker more modular, set up init.js to give interface examples.