you can now create templates with a JS method if you don't want to write them into the markup