Fully working chat without ajax refresh