var opts=document.getElementById("moduleSelected");

for(var i=0;i<opts.options.length;i++){

opts.options[i].selected = 'selected';

}