Embedded JavaScript templates with kick-ass error support