Bug 1009358 - Choose search engine

Instead of adding elements one by one, you may want to add a documentFragment. See http://ejohn.org/blog/dom-documentfragments/