Replaced last-child pseudo selector with class for ie8 support