See fiddle:


If you uncomment the badgetext part, it will result in an error: 'Cannot read property 'setText' of undefined' where undefined is badgeElement = me.badgeElement, in the updateBadgeText function.