Working example of node creation with promise style syntax