Suggestion list/js + code block

Suggestion how to re-write list.js + the code block for it.