Prototype Dlist rewrite with cursor