The scene at the end was supposed to be Jack defeating Aku and heading home through the portal.
Genndy even said it himself.