This is correct and should work. I tried it, just to be sure, and it works.

What jsreport version do you use?
What template store implementation do you use?