Update test/OnDemand.html to use put instead of domConstruct
Reduce code in DnD test page
editor: clean out unused vars, fixes #405