Change to prevent javascript single line object definition to be removed...

Change to prevent javascript single line object definition to be removed by template.Display().
Could be fixed by using {{ }} but this syntax is not understood by editors. 
example:
var line = { def: 2 };
generate
var line = ;

Compatible with all existing template variables in the project.