Restore prev/next functions in core/list.js