update request js