add dispatch.js & worker.js