Fix typo err->error in renderRoute.js