Move node def to function

In future, will be generated from jQuery call from ANCOR API.