remove isDomNode method and copy all option attributes except "value"
merge variables declaration