improve closest() performance
edit jshint rules
normalize task names using an array