The municipal corporation shall have the power to make, establish, alter, amend, or repeal ordinances, regulations, and bylaws relating to the matters contained in this chapter, consistent with law, and to impose penalties for the breach of an ordinance and enforce those penalties.
24 V.S.A. § 3618