the error message now uses a handlebars condition. also fixed some scope issues created by $.ajax. removed some unneeded code from legacy.js