This solves the issue of a lone script tag dropped in the middle of the content, and organizes the template a tiny bit better.