The mayor, mayor pro tempore or recorder of said city shall have, in addition to the jurisdiction hereinbefore conferred, the criminal jurisdiction of justices of the peace. Whenever it shall appear that an offense against the law of the state has been committed within the limits of said city, it shall be the duty of the mayor, mayor pro tempore or recorder, as the case may be, after investigation, to commit the offender or offenders to jail, or to bail them to answer to the court having jurisdiction of the offense. (1900 Ga. Laws, page 345, § 49; renumb. § 48 by 1901 Ga. Laws, page 549, § 2; renumb. § 47 by 1902 Ga. Laws, page 510, § 1)