In addition to the powers granted to them by the applicable provisions of this title or any other provisions of law, all cities and towns of this state shall have the following powers, and the councils or other governing bodies of such cities and towns may provide by ordinance or resolution for the exercise or enforcement of the same:
(1) To prevent the introduction of contagious, infectious, or pestilential diseases into such cities or towns;
(2) To establish and regulate a sufficient quarantine, not inconsistent with laws of the state, in the towns and cities and within the police jurisdiction thereof and to punish any breach of quarantine law;
(3) To adopt such ordinances and regulations as the council or other governing body may deem necessary to insure good sanitary condition in public places or in private premises in the cities and towns; and
(4) To prescribe the duties and fix the salaries and compensation for such health officials as they may deem necessary.