feat/test(command_new): Add method to build HTML to write to index.html, add tests