Sec. 54. Violation of ordinance a misdemeanor.
   That any person or persons violating any ordinance of the town shall be deemed guilty of a misdemeanor, and shall be subject to the provisions of chapter sixty-two of the code, volume two, entitled “towns and cities.”