applicative functions and configure jshint for mocha