Added HTMLTextAreaElement.setRangeText shim if method isn't native.
Also fixed a unicodeLength (str) vs str.length bug.