use NODE_SET_PROTOTYPE_METHOD macro.