fixed serverside templates.js bug that prevented blocks from being defined