[js_ingest] changes according PR comments