Update templates.js

#2 fixed id和replies_count的地方写错了，顺便格式化了下代码
Merge pull request #3 from kaku87/patch-1

#2 fixed Update templates.js