fixed template issue, and html js init runtime