select in_out javascript