if condition for select option in javascript