tag-list JS refactored