node examples improved by @ethanbustad