fixed replace binding to carryover attrs

added carrying over of attrs/classes for replaced elements. this way we don't have to awkwardly manage those extra classes in javascript in the view, they stay in the template where they belong.