Refactored htmlWriter to create a JSON object of the repository instead of an array of file paths.