jshint, reduce code duplication
jshints