rebuilds app (adding templates.js)