window.addEvent('load', function() {
    call_ajax('get_notification_count', {}, function(response) {
        if(response.data > 0) {
            var badge = new Element('span', {
                'class': 'badge',
                'text': response.data
            });
            $('badge-container-notifications').grab(badge);
        }
    });
});

