Thin films in the presence of chemical reactions