Fix ie7-8 bug that caused js errors on that.element.detach().attr('type', 'hidden'). Change creation of tag spans to make ie happy. Removed white spaces in js script.