Many JS builtin functions have callback function arguments. Nashorn allows any Callable to be passed in certain places. In few place, it is expected to be a ScriptFunction! We should uniformly allow any Callable to be passed as callback argument for all JS builtin functions.