Update temple.js and index from generator