or use define to nodes or put var inside function
I've made this with second solution and it works


Never say never.