JS var in function ?
Because it can be easily replaced by template . It's actually a quick fix for discussion.