finish template.js, working on the route, need to implement mkarg