Demonstration and documentation

For usage; see the JS snippet below.