Extract report functionality from access-lint gem into JS library.

Identifier 'element_names' is not in camel case.