This is a very simple demonstration of LZMA-JS, a browser-based implementation of the LZMA compression algorithm.
This demo shows how to use the individual compression and decompression scripts.
Of course, there is no reason to use both (this is just an example).
If you just want compression, only include lzma-c.js and if you just want decompression, include lzma-d.js.
If you want to use both compression and decompression, just use lzma.js (see simple_demo.html).
Or if you want to skip web workers, include lzma_worker.js (see simple_demo_without_web_workers.html).