core/demo.js: inArray test added