simplified setting of class in selection.append using second parameter