rewrite content of html-files with ajax-requests