How should we deal with javascipt which uses template tags and variables? We can not put it in an external file...