Fix rangyinputs availability check

Because the surroundSelectedText method is added to jQuery.fn