Export and run main method.
Add losing example.
Run tests with slimerjs.