Move the statics back into JS from C++.

I figured out that the `DisplayExceptionLine` trick was what I really needed, not the C++ stuff.