fix js style

Signed-off-by: xiehuc <xiehuc@gmail.com>
finish ImSource

Signed-off-by: xiehuc <xiehuc@gmail.com>
finish ChatSource

Signed-off-by: xiehuc <xiehuc@gmail.com>
fixed IMs history on start and removing notifications on IM deletion