Lightweight JS collection management.