BL-599: Unresponsive script message while typing

I don't much like this as a comment because it's not clear how doing this speeds it up. Or course, clearing the timeout prevents us redoing the markup for every keystroke, just a half-second late. If this version is importantly faster than the old one, it might be worth having the comment mention the alternative and why (or at least that) this is faster.