fixed code for removing option element in IE9, previous solution didnt work when select contained optgroup..