fixed .extend() method and add href, src attributes