Modified SelectedOptions Javascipt Code