LocalApplication saving file in html format