updating out of date index.tpl (and templates.js)