BK-759 Implement Collection class for JavaScript editor interface