Fix get/addAttributes to use the prototype