adding basic function to clean html
produce the very first index.json to be used for static pages