code: function rngFromPoint(x, y) {
            var rng = body.createTextRange();
  
            try {
              rng.moveToPoint(x, y);
            } catch (ex) {
              // IE sometimes throws and exception, so lets just ignore it
              rng = null;
            }
  
            return rng;
          }
docs: Return range from point or null if it failed