Determine if a JavaScript object is numeric