First pass of dispatcher.js