fix compiling error of js template
Merge pull request #4313 from minggo/develop

[ci skip]fix compiling error of js template