add diagram favor
adjust diagram.favor.js