Fix a JSHint warning
More fixes per @DennisKehrig's review

-Added test files to jshint list
-Fixed couple grammar mistakes
-Refactored the spec parse matching to a single function to avoid code
duplication