updated html editor to match document instantiation with file path