Add a clear method to jsmoltools

This should clear things out more cleanly and hopefully more reliably than the
previous method. I think.