The governing body of every municipality shall have power to make, enforce, amend and repeal ordinances requiring the owner or tenant of a dwelling or lands lying within the limits of such municipality, where it shall be necessary and expedient for the preservation of the public health, safety, general welfare or to eliminate a fire hazard, to remove from such lands or dwelling or destroy brush, weeds, including ragweed, dead and dying trees, stumps, roots, obnoxious growths, filth, garbage, trash