update template for test-main.js