Why are you searching this.document[0] with getElementsByTagName is this a perf optimization?