The mayor and council shall regulate by ordinances the sale, storage and keeping of gasoline, kerosene, gunpowder, dynamite, nitroglycerine and other inflammable or explosive materials within the city limits.