Chat logout, fixed requirejs issue