Wrap compiled output in a closure

That way we don’t have to worry about memory leaks in the solver, which was not really meant to be instantiated multiple times per process (or at least the authors may have never tested it).
Test function: countLines

Putting it all in a string seems to be a good way to pass data from JS to C.