Every municipality governed by chapters 70 to 76 of this title (s. 40:70-1 et seq.), shall have all the powers necessary for its government not in conflict with the laws applicable to all municipalities or the provisions of the constitution and, in addition to the powers conferred by subtitle 3 of this title (s. 40:42-1 et seq.), may make, amend, repeal and enforce ordinances for the following purposes:
All ordinances or resolutions heretofore passed in any such municipality, not inconsistent with the rights and powers herein granted shall remain in full force and effect until altered or repealed by the commissioners in the manner herein provided.
N.J.S. § 40:72-3