Lint warnings
Angular's $doc is wrapped in an array
Download data as csv, ison