[cyb-3] JS ingest library implemented

replace 4 with ```XMLHttpRequest.DONE```