Use jquery.isNumeric instead of typeof number

A new `isNumeric` function instead of `typeof a === "number"`. 
Uses `$.isNumeric` if present else defines it in local scope.

I think this is very important since `typeof` evaluates to `number` even for `Infinity` and `NaN`