All the small things.
Move confirm_before_* to common.js. Use it in templates.