$(document).ready( function() {
    $('li:last-child').addClass('last-child');
    $('li:first-child').addClass('first-child');
});
