Added SetFunction to NanCallback.