improvement: data-bind-foreach function