updated file_writer to a single entry point. Doent matter if is running in node or in the browser. #12