var date = new Date();
var year = date.getFullYear();
for(var i=0;i<10; i++){
$("<a href='year=' class='list-group-item' />").append(year-i).appendTo('.list-group');
$('a').attr({'href':year-i});
}
var date = new Date();
var year = date.getFullYear();
var listGroup = $('.list-group');
for(var i = 0; i < 10; i++) {
var currentYear = year - i;
var a = $('<a href="' + currentYear + '" class="list-group-item">' + currentYear + '</a>');
listGroup.append(a);
}