assign a class attribute 'pdf' to <a> element, when its link target is a pdf file