add template for enchant.js