Script error at line:4 colum:12 redirectFn is not defined