Practicing use of nodejs, jquery, mocha and functional programming