fix GraphicUnit attr_list and add js