Added post functionality to server and browser ajax