Prevent IE 11 from using document.selection

For IE 11, document.selection is no longer supported. See 
http://msdn.microsoft.com/en-us/library/ie/ms535869(v=vs.85).aspx 
for details. Updated condition so IE 11 uses selectionStart and 
selectionEnd.