bugfixes: refactoring of templates, jquery-ajax-form.js