Added document.selection.empty fallback for IE9 removeAllRanges bug.