node example good and bad practice