Moved Sean's fix for the ES6 name bug to handleRoutes, making it work for index routes too.