Simple chat with php - javascript