Formation of protostellar jets – effects of magnetic diffusion