Authority is hereby vested in the mayor and council of the town to establish a recorder's court for said town by appropriate ordinance adopted by the mayor and council, that such court be established. Should the mayor ad council establish such court, it shall have jurisdiction over violation of city ordinances. The maximum penalties which may be imposed by the recorder for violation of city ordinance shall be a fine not exceeding one hundred dollars ($100.00) or imprisonment not exceeding thirty (30) days. In care of contempt, the court may impose a fine not exceeding ten dollars ($10.00) or imprisonment not exceeding five (5) days, or both such fine and imprisonment for such act of contempt.