Changed map() to maproute() to avoid ES6 naming conflict
Update to address ES6 naming conflict