Attempetd to fix JS line numbering issues.

Changed the way that line numbers are rememebred and restored
across calls.
Fixed egal bug.

In commit 7c2ea883, I inadvertantly introduced a bug into
the grace_egal function.  This commit corrects that bug.