Check for failed js at each entered command.

This seems to be the best place to put it;
even in a script, if one line breaks js, the next line will clear the context.