save html content into seperate file