You do not need to surround the template code with script tags for it to work.
Please note the template is in another file. Its saved as template.mustache and is presented in my jsfiddle code.
I still get the jquery error, after trying your example due to jquery 1.9.
it works when using jquery version 1.8.