fix js and coffe generator for nested routes