Fixing node sample code so it actually works.