This adds an assert function to the JavaScript global similar to assert ...

...in Rust. This function can be used for writing tests.

This previously was pull request #28, but I had to fix up a lot of stuff. I hope in the future I can get a more proper git workflow going.