Detect if a Function is Native Code with JavaScript