[dist] mask to html (document) with self initialization script