Implement webL10n's ready() and waitFor interactive to avoid race conditions