third commit:  private methods in html_generator, require json added