Updated dispatcher.js