ecmascript/page.js: make page.getItems() return a copy of the items array