Fix JSHint warnings in specs