fix  $.isFunction in Nitro/V8

 typeof a RegExp will returns "function" in Nitro/V8