jsgui: Replace _.template with custom function that strips comments