The justices of the peace shall have jurisdiction of offenses under this subchapter except where jurisdiction of any such offenses is vested exclusively in another court.