Added auto-refresh using ajax for chat page