JS and demo code now under APL 2.0.
Also fixed tabs-to-spaces.