+ fix js template valid bug + update check input file count
+ fix js template valid bug + update check input file count

bill-zhuang/coderepo,bill-zhuang/coderepo,bill-zhuang/coderepo,bill-zhuang/coderepo