use 'var thisNode = this' consistently