Fix #1343: Add a RetryingComJSEnv and use it for CI

OK