removing and then adding same tag didn't work

removing tags only removed the related DOM element.
now also iterates over the "tags" array and removes entry there since this array is used to detect duplicates.
don't forget to change minified version. :)