fix for issue #22, this.tags on prototype