Channel flow of a Maxwell fluid with chemical reaction