Updated plugins loop to use obj.each context option