Remove range.detach()

Chrome spits out this warning:
'Range.detach' is now a no-op, as per DOM (http://dom.spec.whatwg.org/#dom-range-detach).