Services: User an html template

Instead of procedural JS.
Use templates in the html instead of JS