Organized template.js and reworked prompts.