Reformat router and add "use strict"