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

Use the function form of "use strict".