The word "justice," when applied to a magistrate, shall mean a justice of a municipal court, or a justice of the peace having jurisdiction over the subject-matter.