rewrite 'items' code without zepto