add selected attribute to option javascript

so that this