Fixing javascript error in IE8 while selecting the item from autocomplete menu

I've added enclosing tags to all _renderItem() JavaScript functions to fix wrapping item label with \<a\>, \<span\> tags. Forgetting to enclose labels properly ends up in not adding \<a\>, \<span\> tags at all in IE8 which eventually leads to a JavaScript error while trying to select rendered autocomplete item.