Merge the Router into html.engine.js