Fix JS demos, which had bitrotted

Merged Matthew Hodgson requested to merge matthew/js-fixes into master

Merge request reports