add generic routes to js