An attempt of implementing clean code book args example in javascript