fix js routing for routing extra routes