JSHint improvements