The mayor and aldermen shall pass all ordinances and regulations for the government of said Town, the protection of life and property, the maintenance of public places and the protection of public health, provided the same are not repugnant to the Constitution and laws of the State or of the United States, and prescribe and enforce penalties for the violation of same.