Fixed bug in template.html that would prevent scrolling on a page built with it