Strip single-line javascript comments from the html template before generation

They prevent the generated js file from working. 

The stripper is really dumb and considers anything after two-forward slashes following a space to be a comment. You'd need a full blown parser to deal with comments, especially multiline, correctly.