The JS used to make the html document.

This is wrapped in the html but the raw js may be helpful to someone