JSHint improvements, doc cleanup