The warden and burgesses, when assembled according to law, shall have power to make, alter, repeal, and enforce such bylaws, orders, ordinances, and enactments as they deem suitable and proper, not inconsistent with this resolution or contrary to the laws of this state or of the United States, for the following purposes: . . . to license, regulate, or prohibit the manufacture, keeping for sale, or use of fireworks, torpedoes, firecrackers, gunpowder, petrolemn, dynamite, or other explosive or inflammable substance, and the conveyance thereof through any portion of the borough . . . .