Add loadNode api to registry.js