Added foundDate parameter to data.

It's Date.now(), milliseconds since unix epoch.
Separated html generation into its own function.