update node - server notification

fixed bug due to "javascript closure"