directory_manifest.js, _add_value() refactoring : add functions write_file(), read_file(), html_redirect() preventing duplicated code