PM: jshint specs + improve detectSpec