This line is needed for execution of scripts inside of the template. I removed the block below.