JS session fail on out of memory.

This invalidates the extra buttons to show memory usage
and clear the memory; they don't work any more.