JS: add retries in recordreader