add infection.js and modify template