Moved template the HTML from js file
Fixing up fermenations