Custom function not defined when called from a different routine

@dvbridges, yeah that sounds very important :sweat_smile:
That function definition was created by the python to JS translator of the builder. Is that a normal thing that function definitions are translated but not assigned to a variable?