update example 4-11

update example 4-11 spa.chat.js