Added hash before template names

This ensures that the templates created will work in both the server-side environment and on the client-side where the name is also a jQuery selector (the ID of the template element).