Fix javascript template project compile fail.
Merge pull request #4217 from Dhilan007/master

[ci skip]Fix javascript template project compile fail.