Using web workers to guard against infinite parse times