Biomacromolecules as effective "green" flame retardants for textile substrates