First working implementation.
Simple demo page.