Webvisualize: Refactorings in the templates

* Clean-up of the code in the html templates

Signed-off-by: Alberto Rodriguez Peon <alberto.rodriguez.peon@cern.ch>