tweak ajax, abandon idea of directives