setAttribute for filling settings w/ data

This makes the onblur, value, onfocus, and other dom attributes function
properly. Before, they would never actually become part of the code
because since they weren't added to the dom in createOptions, but now we
return the elements with the attributes hardcoded into them for use in
switchtab