form ajax rewriting file