simple chat example with no style

add global scope that shared with entire project
Fix some bug